From: Matthieu Gallien Date: Wed, 22 Jan 2025 11:31:04 +0000 (+0100) Subject: fix the if check for invalid virtual LNK files X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~119^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a45e96b793da55815a7f14044f8bf848b30985f0;p=nextcloud-desktop.git fix the if check for invalid virtual LNK files should ensure we fix the DB metadata of LNK windows shortcuts with virtual files type Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 831b85e33..dfd59a3b8 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1679,7 +1679,7 @@ void ProcessDirectoryJob::processFileFinalize( item->_type = CSyncEnums::ItemTypeVirtualFileDehydration; } - if (item->_instruction != CSyncEnums::CSYNC_INSTRUCTION_NONE && + if (item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE && !item->isDirectory() && _discoveryData->_syncOptions._vfs && _discoveryData->_syncOptions._vfs->mode() == OCC::Vfs::Off &&